package com.map;

 

public class MapIndexItem {
	 private int index;
	 private String path;
	 private String name;
	 private int blocksize;
	 private int width;
	 private int height;
	 public MapIndexItem(String serial)
	 {
		 String itemstr[] = serial.split("\t");
		 this.index = Integer.parseInt(itemstr[0]);
		 this.path = itemstr[1];
		 this.name = itemstr[2];
		 this.blocksize = Integer.parseInt(itemstr[3]);
		 this.width = Integer.parseInt(itemstr[4]);
		 this.height =Integer.parseInt(itemstr[5]);
	 }
	 public MapIndexItem( int index,String path,String name,int blocksize,int width,int height)
	 {
		 this.index = index;
		 this.path = path;
		 this.name = name;
		 this.blocksize = blocksize;
		 this.width = width;
		 this.height =height;
	 }
	 public int getIndex() {
			return index;
		}
		public void setIndex(int index) {
			this.index = index;
		}
		public String getPath() {
			return path;
		}
		public void setPath(String path) {
			this.path = path;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public int getBlocksize() {
			return blocksize;
		}
		public void setBlocksize(int blocksize) {
			this.blocksize = blocksize;
		}
		public int getWidth() {
			return width;
		}
		public void setWidth(int width) {
			this.width = width;
		}
		public int getHeight() {
			return height;
		}
		public void setHeight(int height) {
			this.height = height;
		}
}
